<style type="text/css">
.db_list{
	padding: 0px 0 10px 0;
    font-size: 13px;
    line-height: 35px;
    height: 45px;
}
.db_list a{
	margin-right: 15px;
	color: #555;
    font-weight: 600;
}
.db_list span:nth-child(1){
	display: block;
    float: left;
    padding-left: 15px;
    background: #ececec;
    border-radius: 3px;
}

#db_tools button {
    margin-right: 10px;
}
#db_tools button:last-child{
	margin-right: 0;
}
</style>
<div class="bt-form">
	<div class='plugin_version'></div>
	<div class="bt-w-main">
		<div class="bt-w-menu">
			<p class="bgw" onclick="pluginService('postgresql', $('.plugin_version').attr('version'));">服务</p>
			<p onclick="pluginInitD('postgresql', $('.plugin_version').attr('version'));">自启动</p>
			<p onclick="pluginConfigTpl('postgresql');">配置文件</p> 
			<p onclick="pluginConfig('postgresql','','pg_hba_conf');">客服端认证</p>
			<p onclick="pgPort();">端口</p>
			<p onclick="runInfo();">当前状态</p>
			<p onclick="pgPerfOpt();">性能优化</p>
			<p onclick="pluginLogs('postgresql',$('.plugin_version').attr('version'),'run_log');">日志</p>
			<p onclick="pluginLogs('postgresql',$('.plugin_version').attr('version'),'slow_log');">慢日志</p> 
			<p onclick="dbList()">管理列表</p>
			<p onclick="masterOrSlaveConf($('.plugin_version').attr('version'))">主从配置</p> 
		</div>
		<div class="bt-w-con pd15">
			<div class="soft-man-con" style="height: 530px; overflow: auto;"></div>
		</div>
	</div>

</div>

<script type="text/javascript">
resetPluginWinWidth(800);
var loading = layer.msg("资源加载中...", { icon: 16, time: 0, shade: 0.3 });
$.getScript( "/plugins/file?name=postgresql&f=js/postgresql.js", function(){
	layer.close(loading);
	pluginService('postgresql',$('.plugin_version').attr('version'));
});
</script>